<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/sinopac-fn" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/sinopac/form/CSS/tabs.css">
<script type="text/javascript" src="/sinopac/js/jQuery/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/sinopac/js/jQuery/jquery_DOMWindow.js"></script>
<script type="text/javascript" src="/sinopac/js/tools/formUtil.js"></script>
<script>
	$(document).ready(function(){
		$('input[name=btnPrint]').click(function(){
			window.print();
		});
	});

	function exportToExcel() {
		var f = $('#competentRecord');
		f.prop('action','${fn:url('/RptQuery/exportExcel.action')}');
		f.submit();
	}
</script>
<title>主管覆核紀錄</title>
</head>
<body>
<%@ include file="/form/include/title.jsp"%>
<s:form id="competentRecord">
	<table width="900" align="center">
		<tr align="center"><td><h2><b>主管覆核紀錄</b></h2></td></tr>
	</table>
	<table class="table-style" align="center">
		<tr>
			<th>日期</th>
			<th>作業</th>
			<th>客戶ID</th>
			<th>客戶名稱</th>
			<th>TOKEN ESN</th>
			<th>檔案名稱</th>
			<th>覆核主管</th>
			<th>覆核結果</th>
			<th>註解</th>
		</tr>
		<s:iterator value="cptList" status="c" var="cus">
			<tr>
				<td><s:property value="log_time" /></td>
				<td><s:property value="job_code" /></td>
				<td><s:property value="customer_id" /></td>
				<td><s:property value="customer_name" /></td>
				<td><s:property value="token_esn" /></td>
				<td><s:property value="batch_file" /></td>
				<td><s:property value="manager" /></td>
				<td><s:property value="returncode" /></td>
				<td><s:property value="comment" /></td>
			</tr>
		</s:iterator>
	</table>
	<table width="900" align="center">
		<tr height="50"/>
		<tr align="center">
			<td><s:submit action="backMain" theme="simple" value="確定"></s:submit></td>
			<td><input type="button" name="btnPrint"value="列印"></td>
			<td ><input type="button" value="儲存" name="btnExcel" onclick="exportToExcel();"></td>
		</tr>
	</table>
</s:form>
</body>
</html>